Class sjl.Array
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sjl.Array

java.lang.Object
   |
   +----sjl.Array

public class Array
extends Object
The Array class contains static functions that makes it possible to use the java builtin arrays in combination with the algorithms. The functions below will return random iterators for the beginning and past-the-end for argument array.
This example shows how the array iterator adapters can be used with the generic algorithms.
     String array[] = new String[20];
     Vector vector(20);
     // fill the array with strings.
     ...
     // Copy the contents of the array into the vector.
     Algo.copy(Array.begin(array), Array.end(array), 
                           new BackInsertIterator(vector));

Copyright © 1996 Finn Bock


Method Index

 o begin(boolean[])
Return an array iterator adapter for the beginning of the array
 o begin(boolean[], int)
Return an array iterator adapter for a position in the array
 o begin(byte[])
Return an array iterator adapter for the beginning of the array
 o begin(byte[], int)
Return an array iterator adapter for a position in the array
 o begin(char[])
Return an array iterator adapter for the beginning of the array
 o begin(char[], int)
Return an array iterator adapter for a position in the array.
 o begin(double[])
Return an array iterator adapter for the beginning of the array
 o begin(double[], int)
Return an array iterator adapter for a position in the array
 o begin(float[])
Return an array iterator adapter for the beginning of the array
 o begin(float[], int)
Return an array iterator adapter for a position in the array
 o begin(int[])
Return an array iterator adapter for the beginning of the array
 o begin(int[], int)
Return an array iterator adapter for a position in the array
 o begin(Object[])
Return an array iterator adapter for the beginning of the array
 o begin(Object[], int)
Return an array iterator adapter for a position in the array
 o begin(short[])
Return an array iterator adapter for the beginning of the array
 o begin(short[], int)
Return an array iterator adapter for a position in the array
 o begin(String)
Return an array iterator adapter for the beginning of the array
 o begin(String, int)
Return an array iterator adapter for a position in the string.
 o begin(StringBuffer)
Return an array iterator adapter for the beginning of the array
 o begin(StringBuffer, int)
Return an array iterator adapter for a position in the string.
 o end(boolean[])
Return an array iterator adapter for the end of the array
 o end(byte[])
Return an array iterator adapter for the end of the array
 o end(char[])
Return an array iterator adapter for the end of the array
 o end(double[])
Return an array iterator adapter for the end of the array
 o end(float[])
Return an array iterator adapter for the end of the array
 o end(int[])
Return an array iterator adapter for the end of the array
 o end(Object[])
Return an array iterator adapter for the end of the array
 o end(short[])
Return an array iterator adapter for the end of the array
 o end(String)
Return an array iterator adapter for the end of the array
 o end(StringBuffer)
Return an array iterator adapter for the end of the array

Methods

 o begin
  public static RandomIterator begin(Object array[])
Return an array iterator adapter for the beginning of the array
 o end
  public static RandomIterator end(Object array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(Object array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o begin
  public static RandomIterator begin(byte array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(byte array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(byte array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(short array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(short array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(short array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(int array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(int array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(int array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(float array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(float array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(float array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(double array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(double array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(double array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(boolean array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(boolean array[],
                                     int pos)
Return an array iterator adapter for a position in the array
 o end
  public static RandomIterator end(boolean array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(char array[])
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(char array[],
                                     int pos)
Return an array iterator adapter for a position in the array.
 o end
  public static RandomIterator end(char array[])
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(String string)
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(String string,
                                     int pos)
Return an array iterator adapter for a position in the string.
 o end
  public static RandomIterator end(String string)
Return an array iterator adapter for the end of the array
 o begin
  public static RandomIterator begin(StringBuffer string)
Return an array iterator adapter for the beginning of the array
 o begin
  public static RandomIterator begin(StringBuffer string,
                                     int pos)
Return an array iterator adapter for a position in the string.
 o end
  public static RandomIterator end(StringBuffer string)
Return an array iterator adapter for the end of the array

All Packages  Class Hierarchy  This Package  Previous  Next  Index